#!/bin/sh

set -x

# Remove a potentially pre-existing server.pid for Rails.
bundle install
rails db:migrate

rm -rf tmp/pids/server.pid
rm -rf tmp/cache/*

echo "执行脚本"

# Execute the main process of the container
exec "$@"